package cn.yunhe.controller;

import cn.yunhe.entity.Point;
import cn.yunhe.service.PointService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/Point")
public class PointController {

    @Resource
    private PointService pointService;

    /**
     * 获取子类列表
     * @return
     * 郭瀚钰
     */
    @RequestMapping("/getPointByField")
    private List<Point> getPointByField(Integer fieldId){

        List<Point> pointList = pointService.getPointByField(fieldId);

        return pointList;
    }


    public PointService getPointService() {
        return pointService;
    }

    public void setPointService(PointService pointService) {
        this.pointService = pointService;
    }
}
